import request from "@/utils/request";

// 签到记录分页列表
export function getSignRecordApi(query) {
  return request({
    url: "/signIn/record/list",
    method: "get",
    params: query,
  });
}

// 删除签到记录
export function deleteSignRecordApi(postId) {
  return request({
    url: "/signIn/record/" + postId,
    method: "delete",
  });
}

// 根据id查询详情
export function getSignRecordByIdApi(postId) {
  return request({
    url: "/signIn/record/" + postId,
    method: "get",
  });
}

// 修改签到记录
export function putSignRecordApi(data) {
  return request({
    url: "/signIn/record",
    method: "put",
    data: data,
  });
}
